
<!DOCTYPE html>
<html class="client-nojs" lang="en" dir="ltr">
<head>
<meta charset="UTF-8"/>
<title>Pto gen - PanoTools.org Wiki</title>




<style media="screen" type="text/css" title="Screen style sheet"> @import url(manual.css); </style>

<meta name="generator" content="MediaWiki 1.35.3"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>





<!--[if lt IE 9]><![endif]-->
</head>
<body class="mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-Pto_gen rootpage-Pto_gen skin-vector action-view skin-vector-legacy">


<div id="content" class="mw-body" role="main">
	<a id="top"></a>
	
	
	<h1 id="firstHeading" class="firstHeading" lang="en">Pto gen</h1>
	<div id="bodyContent" class="mw-body-content">
		<div id="siteSub" class="noprint">From PanoTools.org Wiki</div>
		
		
		
		
		
		
		<div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr"><div class="mw-parser-output"><p><b>pto_gen</b> assembles a <a href="Hugin.html" title="Hugin">Hugin</a> .pto project file that is suitable as input for
further tools such as the <a href="Cpfind.html" title="Cpfind">cpfind</a> control-point generator, or for opening
with the Hugin panorama GUI itself.  Functionality is similar to
match-n-shift<a class="external" href="https://wiki.panotools.org/Match-n-shift">[*]</a>.
</p><p>The general use is
</p>
<pre>   pto_gen *.jpg
</pre>
<p>This creates a project file from all jpg images, in the same folder as the first photo.
The project file is named <i>first_file</i>-<i>last_file</i>.pto using the same convention as the Hugin GUI.
</p>
<h2><a name="Options"><span class="mw-headline">Options</span></a></h2>
<ul><li><b>-o | --output output.pto</b> Output a pto file with the given filename (instead of the default).</li></ul>
<ul><li><b>-p | --projection number</b> Sets the projection type for all images (0 - rectilinear, 2 - equirectangular, 3 - full-frame fisheye, ...).</li></ul>
<ul><li><b>-f | --fov number</b> Sets the horizontal field of view for all images. Useful if your lens does not store the focal length and/or crop factor correctly in the EXIF data.</li></ul>
<ul><li><b>-c | --crop left,right,top,bottom</b> Sets the input images crop to the given values.</li></ul>
<ul><li><b>-s | --stacklength number</b> Sets the number of images in each stack (default: automatic detection of stacks).</li></ul>
<ul><li><b>-l | --linkstacks</b> When given links the image positions in stacks.</li></ul>
<ul><li><b>--distortion</b> Tries to load distortion data for the images from the lens database.</li></ul>
<ul><li><b>--vignetting</b> Tries to load vignetting data for the images from the lens database.</li></ul>
<ul><li><b>--sort</b> By default the images are added to the pto file in order as given on the command line. With the --sort switch the images are ordered alphanumerical before adding to the project file.</li></ul>
<ul><li><b>-h | --help</b> Display help.</li></ul>
<h2><a name="Related_links"><span class="mw-headline">Related links</span></a></h2>
<p><a href="Panorama_scripting_in_a_nutshell.html" title="Panorama scripting in a nutshell">Panorama scripting in a nutshell</a> - pto_gen is useful in stitching panoramas from the command-line
</p>

<!--
Transclusion expansion time report (%,ms,calls,template)
100.00%    0.000      1 -total
-->


</div></div><div class="printfooter">Retrieved from "<a dir="ltr" href="https://wiki.panotools.org/index.php?title=Pto_gen&amp;oldid=17272">https://wiki.panotools.org/index.php?title=Pto_gen&amp;oldid=17272</a>"</div>
		</div></div></body></html>